/**
 * 系统基本文字配置
 */

export const SYSTEM_CONFIG_TITLE = "果佰奥管理后台";

/**
 * Reducer内的state存储数据名
 */

export const REQUEST_DATA = 'REQUEST_DATA';

export const RECEIVE_DATA = 'RECEIVE_DATA';

export const FORM_SPIN_LOADING = 'formSpinLoading';// 表单loading

export const FORM_SPIN_LOADING_MODAL = 'formSpinLoadingModal';// 弹出表单loading

export const BASE_MODAL = 'baseModal';// 基础内容loading

export const BASE_SPIN_LOADING = 'baseSpinLoading';// 基础内容loading

export const BASE_CARD_LOADING = 'baseCardLoading';// 基础内容Card loading

export const BASE_TABLE_LOADING = 'baseTableLoading';// 基础内容Table loading
export const BASE_TABLE_LOADING_CREDIT = 'baseTableLoadingCredit';// 基础内容Table loading
export const BASE_TABLE_LOADING_COUNT = 'baseTableLoadingCount';// 基础内容Table loading

export const TABLE_LOADING = 'tableLoading';// 弹出表单loading

export const ECHARTS_WORD_CLOUD_UPDATE = "isUpdateWordCloud";// 是否刷新标签云

export const HEADER_MENUS_SERVICE = "headerMenusService";// 头部菜单

export const MENU_OPEN_KEY = "menuOpenKey";// 选中菜单

// user
export const EDIT_PASSWORD_MODAL = "editPasswordModal";// 修改密码

export const EDIT_PASSWORD_SPIN = "editPasswordSpin";// 修改密码spin loading
export const CODE_CONFIG = "codeConfig";
export const CODE_CONFIG_INFO = {
    send:"发送验证码",activeSend:"",sendCodeFlag:true,t:60
}

/**
 * 菜单
 * @role {*[]} 角色
 */
export const HEADER_MENUS = [
    {key: "0", name: "首页", path: "/app/index", children: [], role: [], isClick: true},
    {key: "1", name: "用户管理", path: "/app/user/list",children: [], role: [], isClick: true},
    {key: "3", name: "订单管理", path: "/app/order/list",children: [], role: [], isClick: true},
    {key: "4", name: "提现列表", path: "/app/cash/list",children: [], role: [], isClick: true}
];

export const MENUS_KEYS = {
    "index": "/app/index",
    "user": "/app/user/list",
    "cash": "/app/cash/list",
    "notify":"/app/system/notify",
    "order": "/app/order/list",
    "countData": "/app/count/data",
    "countGraph": "/app/count/graph",
    "credit": "/app/credit/list",
    "warning": "/app/warning/list",
    "supervise": "/app/supervise/list"
};

export const ORDER_STATUS_ARRAY = [
    {text: '已取消',color:"#f50",value: 0},
    {text: '待付款',color:"#2db7f5",value: 1},
    {text: '已付款',color:"#87d068",value: 2},
    {text: '待收货',color:"#108ee9",value: 3}
]
// user
export const USER_LIST = "userList";// 用户列表
export const USER_LIST_FILTER = { // 筛选条件
    pageNo: 0,
    pageSize: 10,
    type: 99
}

// order
export const ORDER_LIST = "orderList";// 固废列表
export const ORDER_LIST_CARD_LOADING = 'orderListCardLoading';// Card loading
export const ORDER_LIST_FILTER = { // 筛选条件
    isSuper: "yesd",
    page: 0,
    size: 10,
    status: 99,
    uid: 'system'
}
export const ORDER_WARNING_LIST = "orderWarningList";// 预警固废列表
export const ORDER_WARNING_CARD_LOADING = 'orderWarningCardLoading';// Card loading
export const ORDER_WARNING_LIST_FILTER = { // 预警筛选条件
    area: null,
    endTime: "",
    startTime: "",
    pageNo: 0,
    pageSize: 10,
    type: 1
};

// cash
export const CASH_LIST = "cashList";// 提现列表
export const CASH_LIST_FILTER = { // 筛选条件
    isSuper: "yesd",
    order_no: "system",
    page: 0,
    size: 10,
    status: 99, // 0 未完成 1 成功   2 失败
    type: 1
};

